<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form name="OrderFoodOnline" id="Order_Food" method="POST">
        账号:
        <input type="text" name="account" size="20" maxlength="20" value="123">

        <br> 密码:
        <input type="password" name="pwd">

        <br>
        <input type="checkbox" id="remember" checked> 记住密码

        <br>
        <input type="submit" onclick="show()">


    </form>
    <script>
        function show() {
            var account = document.OrderFoodOnline.account.value;
            var remember = document.OrderFoodOnline.remember.checked;
            document.OrderFoodOnline.pwd.value = "abc";
            // alert(remember);
            alert(document.OrderFoodOnline.pwd.value);
        }
    </script>
</body>

</html>